package com.ruoyi.standingbook.maintenance.domain.vo;

import java.util.Date;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.tools.convert.ExcelOssDownloadConver;
import lombok.Data;
import java.util.Date;



/**
 * 其它管养任务完成进度视图对象 tz_maintenance
 *
 * @author cc
 * @date 2023-08-29
 */
@Data
@ExcelIgnoreUnannotated
public class MaintenanceVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    private String itemName;

    /**
     * 服务种类
     */
    @ExcelDictFormat(dictType = "erecord_service_type")
    private Integer serviceType;

    @ExcelProperty(value = "服务种类")
    private String serviceTypeName;

    /**
     * 管养名称
     */
    @ExcelProperty(value = "管养名称")
    private String maintenanceName;

    /**
     * 社区名称
     */
    @ExcelProperty(value = "社区名称")
    private String community;

    /**
     * 位置
     */
    @ExcelProperty(value = "位置")
    private String location;

    /**
     * 位置描述
     */
    @ExcelProperty(value = "位置描述")
    private String locationDescribe;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    @DateTimeFormat(value = "yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    /**
     * 管养要求
     */
    @ExcelProperty(value = "管养要求")
    private String frequency;

    /**
     * 实际管养频率
     */
    @ExcelProperty(value = "实际管养频率（次）")
    private Long actualFrequency;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ercord_finish_status")
    private String status;

    /**
     *
     */
    @ExcelProperty(value = "现场完成前照片1", converter = ExcelOssDownloadConver.class)
    private String pic1;


    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic1")
    private String pic1Url;

    /**
     *
     */
    @ExcelProperty(value = "现场完成前照片2", converter = ExcelOssDownloadConver.class)
    private String pic2;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic2")
    private String pic2Url;

    /**
     *
     */
    @ExcelProperty(value = "现场完成后照片1", converter = ExcelOssDownloadConver.class)
    private String pic3;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic3")
    private String pic3Url;

    /**
     *
     */
    @ExcelProperty(value = "现场完成后照片2", converter = ExcelOssDownloadConver.class)
    private String pic4;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic4")
    private String pic4Url;

    /**
     *
     */
    @ExcelProperty(value = "")
    private String providerId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
